package com.yuxinmuyu.sports_management.bean.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("sports_project")
public class SportsProject implements Serializable {

    @ApiModelProperty("项目ID")
    @TableId(value = "SportsID",type = IdType.AUTO)
    private Integer sportsID;

    @ApiModelProperty("学期ID")
    private String yearTermID;

    @ApiModelProperty("运动名称")
    private String sportsName;

    @ApiModelProperty("运动详情")
    private String sportsMemo;

    @ApiModelProperty("操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastDate;

    @ApiModelProperty("操作人")
    private String operator;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("附件地址")
    private String fileUrl;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("限制人数")
    private Integer limitNum;

}

